n = int(input())
res = []
for i in range(n):
    res.append(input())

print(len(set(res)))